<template>
  <page-body>
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center blankUser_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub blankUser_fd0_0'>
          <view class='flex flex-wrap align-center blankUser_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  blankUser_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='blankUser_fd0_0_c1_c0'>黑名单</text>
          </view>
          <view class='flex flex-wrap align-center justify-end blankUser_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction align-stretch benben-flex-layout blankUser_flex_1">
        <view class='flex align-center justify-between blankUser_fd1_0' v-for="(item,index) in dataList" :key="index">
          <view class='flex flex-wrap align-center'>
            <image class='blankUser_fd1_0_c0_c0' mode="aspectFit" :src='item.avatar'></image>
            <view class='flex flex-wrap align-center'>
              <text class='blankUser_fd1_0_c0_c1_c0'>{{item.nickname}}</text>
            </view>
          </view>
          <text class='blankUser_fd1_0_c1' @click="delBlack(item)">解除拉黑</text>
        </view>
      </view>

      <!---flex布局flex布局结束-->
      <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
        :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>

    </view>
  </page-body>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';

  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        dataList: []
      };
    },
    computed: {

    },
    watch: {},
    onLoad(options) {
      this.getListFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {

    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getListFunc() {
        this.minixPagingListsApi = global.apiUrls.post665e837317ed5;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {

        }
        this.listData = [];
        this.dataList = this.listData;
        this.pagingListToggle();
      },
      delBlack(item) {
        this.$api.post(global.apiUrls.post665e883b5f65c, {
          black_userId: item.userId
        }).then(res => {
          this.$message.info(res.data.msg)
          if (res.data.code == 1) {
            this.getListFunc()
          }
        })
      },
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .blankUser_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .blankUser_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 700;
    color: #333333;
    line-height: 50rpx;
  }

  .blankUser_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .blankUser_fd0_0_c0 {
    width: 120rpx;
  }

  .blankUser_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .blankUser_flex_1 {
    background: var(--benbenbgColor1);
    background-size: 100% auto !important;
  }

  .blankUser_fd1_0_c1 {
    color: rgba(245, 44, 85, 1);
  }

  .blankUser_fd1_0_c0_c1_c0 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 600;
    line-height: 40rpx;
  }

  .blankUser_fd1_0_c0_c0 {
    width: 120rpx;
    height: 120rpx;
    border-radius: 48rpx 48rpx 48rpx 48rpx;
    margin: 0rpx 16rpx 0rpx 0rpx;
  }

  .blankUser_fd1_0 {
    border-bottom: 1px solid #eee;
    padding: 24rpx 24rpx 24rpx 24rpx;
  }
</style>
